import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const TCHYURL = BASEURL.TCHYURL
const operationManagementApi = {
    //优惠券列表
    couponList(params){
        let url=TCHYURL+'/account/coupon/queryPageCoupon'
        return myaxios.post(url,params)
    },
    // 优惠券详情
    couponDetails(params){
        let url=TCHYURL+'/account/coupon/queryCouponDetailByCid'
        return myaxios.get(url,params)
    },
    //优惠券新增
    addCoupon(params){
        let url=TCHYURL+'/account/coupon/addCoupon'
        return myaxios.post(url,params)
    },
    //优惠券上 下架
    modifyCouponState(params){
        let url=TCHYURL+'/account/coupon/modifyCouponStateByCid'
        return myaxios.get(url,params)
    },
    //优惠券删除
    isDeleteCoupon(params){
        let url=TCHYURL+'/account/coupon/isDelete'
        return myaxios.get(url,params)
    },
    //用户的优惠券详情情况
    userCouponDetails(params){
        let url=TCHYURL+'/account/coupon/queryCouponDetail'
        return myaxios.get(url,params)
    },
    //指定车型券 业务场景所有选项
    getCarType(params){
        let url=TCHYURL+'/account/vehicleModelCategory/list'
        return myaxios.post(url,params)
    },
    // 优惠券名称唯一校验
    checkCouponAlias(params){
        let url=TCHYURL+'/account/coupon/checkCouponAlias'
        return myaxios.get(url,params)
    },
    
    
   






}
export default operationManagementApi;